ViewService.showConfirm Method

Shows a confirmation to the user (message with 'ok' and 'cancel' buttons).
 

Parameters

message

Type: String
The message to show the user.
buttonText

Type: Object
(optional) The text for the buttons. Example: { ok: "ok", cancel: "cancel" }.
Optional: True
type

Type: NotifyType
(optional) The type of alert to show.
Optional: True
title

Type: String
(optional) A title for the alert.
Optional: True

Return Value


Type: jQuery.Promise
A promise object that is resolved when the user presses 'ok', or rejected if the user presses 'cancel'. 

Examples